<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "task_repair_location".
 *
 * @property int $id
 * @property int $task_repair_id 维修记录id
 * @property string $lng 经度
 * @property string $lat 纬度
 * @property string $province 省份
 * @property string $city 城市
 * @property string $area 地区
 * @property int $status 状态
 * @property int $created_at 创建时间
 */
class TaskRepairLocation extends Base
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'task_repair_location';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['task_repair_id', 'status', 'created_at'], 'integer'],
            [['lng', 'lat', 'province', 'city', 'area'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'task_repair_id' => 'Task Repair ID',
            'lng' => 'Lng',
            'lat' => 'Lat',
            'province' => 'Province',
            'city' => 'City',
            'area' => 'Area',
            'status' => 'Status',
            'created_at' => 'Created At',
        ];
    }
}
